<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<head>
	<title>物料列表</title>
</head>

<body class="container">

	<fieldset>
		<form action="#" method="post">
			<button type="button" onClick="buttonAction(this,'m!all.z?page.currentPage=1')">
				不覆盖
			</button>
			<button type="button" onClick="buttonAction(this,'mup!importUpdates.z')">
				覆盖
			</button>
		</form>
	</fieldset>

	<table class="list">
		<caption>
			更新数据
		</caption>
		<thead>
			<tr title="">
				<th>
					物料编号
				</th>
				<th>
					物料名称
				</th>
				<th>
					规格型号
				</th>
				<th>
					器件封装
				</th>
				<th>
					器件描述
				</th>
				<th>
					PCB封装
				</th>
				<th>
					临时编码
				</th>
				<th>
					采购状态
				</th>
			</tr>
		</thead>
		<c:forEach var="material" items="${display['updateMaterials']}">
			<tr>
				<td>
					${material.code }
				</td>
				<td>
					${material.name }
				</td>
				<td>
					${material.specification }
				</td>
				<td>
					${material.footprint }
				</td>
				<td>
					${material.description }
				</td>
				<td>
					${material.pcbDecal }
				</td>
				<td>
					${material.tmpCode }
				</td>
				<td>
					${material.state }
				</td>
			</tr>
		</c:forEach>
	</table>
	
	<table class="list">
		<caption>
			被更新数据
		</caption>
		<thead>
			<tr title="">
				<th>
					物料编号
				</th>
				<th>
					物料名称
				</th>
				<th>
					规格型号
				</th>
				<th>
					器件封装
				</th>
				<th>
					器件描述
				</th>
				<th>
					PCB封装
				</th>
				<th>
					临时编码
				</th>
				<th>
					采购状态
				</th>
			</tr>
		</thead>
		<c:forEach var="material" items="${display['dbMaterials']}">
			<tr>
				<td>
					${material.code }
				</td>
				<td>
					${material.name }
				</td>
				<td>
					${material.specification }
				</td>
				<td>
					${material.footprint }
				</td>
				<td>
					${material.description }
				</td>
				<td>
					${material.pcbDecal }
				</td>
				<td>
					${material.tmpCode }
				</td>
				<td>
					${material.state }
				</td>
			</tr>
		</c:forEach>
	</table>


	<hr class="space" />
	
</body>